import pandas as pd
import plotly.express as px

df = pd.DataFrame(
    {
        "x": [i for i in range(1, 50)],
        "y": [i * 2 for i in range(1, 50)],
        "z": [i * 3 for i in range(1, 50)],
    }
)

fig = px.scatter_3d(
    df,
    x="x",
    y="y",
    z="z",
    color="z"
)

fig.show()